<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="box">
    <ul>
        <li v-for="item in list">{{item}}</li>
        <li v-for="(item,index) in list">{{ item }}-- {{ index }}</li>
        <li v-for="(item,key,index) in user">{{item}}--{{key}}--{{index}}</li>
    </ul>
</div>
<script src="vue.js"></script>
<script>
    var vm = new Vue({
        el: '#box',
        data: {
            list: ['a', 'b', 'c', 'd', 'e'],
            user: {
                name: '小红',
                age: 18,
                gender: 'female'
            }
        }
    })
</script>
</body>
</html>